<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>可拖拽</title>
    <style>
        img {
            width: 200px;
            height: 200px;
            margin: 0 10px;
            box-shadow: 0 0 0 2px lightskyblue;
        }

        .show {
            text-align: center;
        }

        .photo {
            width: 200px;
            margin: auto;
        }

        .empty {
            width: 100%;
            height: 200px;
            border: 2px solid black;
        }

        .patterns {
            margin-top: 20px;
            text-align: center;
        }
    </style>
</head>
<body>
<section class="show">
    <h1>拖动你喜欢的图片到空白区域吧</h1>
    <div class="photo">
        <div class="empty">空白区域</div>
    </div>
</section>

<section class="patterns">
    <img draggable="true" src="1.jpg" alt="photo1">
    <img draggable="true" src="2.jpg" alt="photo2">
    <img draggable="true" src="3.jpg" alt="photo3">
    <img draggable="true" src="4.jpg" alt="photo4">
</section>

<script src="draggable.js"></script>


</body>
</html>